package pers.li.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class OrderUtils {
    public static String getOrderCode() {
        StringBuilder sb = new StringBuilder();
        sb.append(new SimpleDateFormat("yyyyMMddHHmmss").format(new Date()));
        for (int i = 0; i < 5; i++) {
            sb.append((int) (Math.random() * 10));
        }
        return sb.toString();
    }
}
